﻿#include "Camera.h"
#include "Camera.h"

Camera::Camera()
{
}

Camera::~Camera()
{
}

glm::mat4 Camera::getViewMatrix()
{
	glm::vec3 front = glm::cross(mUp, mRight);//摄像机朝向
	glm::vec3 center = mPosition + front;//看向哪里，视线方向上随便一个点都可以
	glm::mat4 viewMatrix = glm::lookAt(mPosition, center,mUp);//直接将摄像机顶部up作为穹顶top也是正确的
	return viewMatrix;
}

void Camera::scale(float deltaScale)
{
}
